Ext.onReady(function(){
	Ext.override(Ext.form.DateField, {
	    initDisabledDays : function(){
	        if(this.disabledDates){
	            var dd = this.disabledDates;
	            var re = "(?:";
	            for(var i = 0; i < dd.length; i++){
	                re += this.formatDate(dd[i]);
	                if(i != dd.length-1) re += "|";
	            }
	            this.ddMatch = new RegExp(re + ")");
	        }
	    }
//		initDisabledDays : function(){
//	        if(this.disabledDates){
//	            var dd = this.disabledDates,
//	                len = dd.length - 1, 
//	                re = "(?:";
//	                
//	            Ext.each(dd, function(d, i){
//	                re += Ext.isDate(d) ? '^' + Ext.escapeRe(d.dateFormat(this.format)) + '$' : dd[i];
//	                if(i != len){
//	                    re += '|';
//	                }
//	            }, this);
//	            this.disabledDatesRE = new RegExp(re + ')');
//	        }
//	    }
	});
	
	var disabled=["05/../2010"]; 
	var fp=new Ext.form.FormPanel({
		width:600,
		height:300,
		renderTo:Ext.getBody(),
		items:[
			{
				xtype:'datefield',
				format:'m/d/Y',
				allowBlank : false,
                readOnly:true,
				disabledDates:disabled
			}
		]
	});
})